﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MonBot.MyBinaryTree
{
    class MyBinaryTree
    {
        public TreeNode Root;
        public int Dimension;

        MyBinaryTree(TreeNode root)
        {
            Root = root;
        }

        public void UpdateDimension()
        {
            Dimension = Root.UpdateDimension();
        }
    }
}
